home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Communication
/
LibraryOfCongress
/
Source
/
util.h
< prev
Wrap
Text File
|
1994-05-21
|
954b
|
26 lines
#import <stdio.h>
#import <sys/types.h>
#define Case break; case
#define Default break; default
extern char *_arg, *_argp; /* use by 'for_each_argument */
extern char *av0; /* will hold name of the command */
#define argument (_arg=(*_argp? _argp : av[++i==ac? --i : i]),_argp+=strlen(_argp),_arg)
#define for_each_argument av0 = av[0]; for (i=1;i<ac && *av[i]=='-';i++)\
for (_argp = &av[i][1]; *_argp;)\
switch(*_argp++)
extern void stripnl(), stripcomment(), error(), debug(), stot(), squishblank();
extern void squishwhite(), substr(), sub();
// extern char *malloc(), *calloc();
//extern char *index(), *rindex();
extern int System(), match();
extern int Verbose;
extern suffix(), blank();
extern int atoi();
// extern double atof();
char *save(), *skipsp(), *prefix(), *strindex();
extern fMode(), fDirectory(), fLink(), fTime(), mkdirs();
#define Alloc(x) (x *)calloc(1,sizeof(x))